package com.wenjie.vo.gen;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@ApiModel("表信息")
@Data
public class TableInfo {

    @ApiModelProperty("表名")
    private String name;

    @ApiModelProperty("表备注")
    private String comment;

    @ApiModelProperty("字段信息")
    private List<Column> columns;


    @Data
    public static class Column {
        @ApiModelProperty("字段名称")
        private String name;

        @ApiModelProperty("字段类型")
        private String type;

        @ApiModelProperty("是否可以为null")
        private Boolean canNull;

        @ApiModelProperty("表注释")
        private String comment;

        @ApiModelProperty("主键字段")
        private Boolean isPrimary;
    }

}
